home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-03-28 | 9.8 KB | 220 lines | [TEXT/R*ch] |
- ---------------------------------------------------------------------------
- THE SWARM v1.0 - A freeware After Dark module
-
- By Leo Breebaart, Kronto Software 1994
- Internet e-mail: leo@cp.tn.tudelft.nl “Bee, where is thy Sting?”
- ---------------------------------------------------------------------------
-
-
- Description
- -----------
-
- The Swarm is a very simple, but surprisingly elegant and mesmerizing
- line animation, in which a number of small line segments (the ‘bees’)
- chase one other segment (the ‘queen bee’) across the screen.
-
-
- Features
- --------
-
- • Fast, flicker-free animation.
- • Does not use any permanent System memory.
- • Smooth fade-out/fade-in effects.
- • Animated About Box.
- • Intelligent Demo Mode (as if anybody cares :-)).
- • Runs under both MultiModule and the Randomizer -- without crashing.
- • Compatible with both Tom Dowdy’s “DarkSide of the Mac” screensaver
- and Steve Falkenburg’s “Twilight Zone” stand-alone module player.
- • Comes with extensively documented source code (THINK C 6.0.1 format).
- • Both the module and the source code are freeware.
-
-
- Restrictions
- ------------
-
- • Needs Color QuickDraw. A color *screen* is not essential, however:
- on a Black & White SE/30 the module works just fine.
- • No support yet for multiple-monitor setups -- the animation always
- runs on the main monitor only (and will simply black out any other screens).
- • No guarantees for versions of After Dark prior to 2.0u, nor for any
- other programs that are supposed to be able to play After Dark modules.
- In all such cases, The Swarm may run, or it may not. Feedback about
- compatibility will be much appreciated. More information about version
- numbers and upgrades can be found further down in this file.
-
-
- Who thought of it first
- -----------------------
-
- I first came across this animation in an X Windows program called ‘xswarm’,
- written by Jeff Butterworth in the early 90’s. I liked it so much, that I
- decided to write an After Dark version. Most of the module I had to create
- from scratch, but the core algorithm was taken straight from Jeff’s
- sources. My module, of course, lacks all the many options that his X Windows
- program has. If you have access to an appropriate machine, be sure to
- check out ‘xswarm’ -- it’s great.
-
- My thanks to Jeff for giving me permission to ransack his code and port his
- algorithm to the Mac.
-
-
- Who else thought of it first
- ----------------------------
-
- Shortly after I began programming this module it was brought to my
- attention that there already *was* a ‘swarm’ After Dark module, called
- “ColorSwarm!”, written by Dan Walkowski in 1991.
-
- Since his module looked a bit different from what I had in mind, I just went
- ahead and wrote my own version anyway. But be sure to check out his work.
- He has more parameters for you to set, his “ColorSwarm!” works on B&W machines
- without Color QuickDraw, and I believe he also handles multiple monitors,
- which I don’t.
-
-
- Other credits
- -------------
-
- For technical assistance, emotional support and beta-testing I owe a sincere
- thank-you to Rodney “Jewelbox” Jacks, to Lloyd “Screensaver FAQ” Wood, and to
- all the members of the After Dark programmer’s mailing list.
-
- Special thanks to Jonas Englund, for allowing me to use and distribute
- his CLUT fading code.
-
- Extra special thanks to David “Bat Signal” Zwiefelhofer, to Joseph
- “Peek-a-Boo” Judge, and to Berkeley Systems themselves for releasing sample
- source code and documentation without which this module would never have
- been written in the first place.
-
-
- Known Problems
- --------------
-
- • The ‘smooth fade’ option only works on 8-bit CLUT screens, but the check
- box may appear on monitors that do not qualify as such. This is
- completely harmless — the check box will simply have no effect on the
- module, and no fading will take place.
- • On grayscale monitors the animation will be in black and white. This is
- not a problem, but a conscious decision: trying to use shades of gray
- simply does not Look Good.
- • Under “DarkSide of the Mac” I have sometimes noticed that certain
- parameters do not have the right initial values. The mini-animation
- in the About Box is sometimes delayed when it shouldn’t be, and the
- swarm will appear ‘colored’ on grayscale displays. Weird, huh?
- • Those of you interested in the source code should be aware that I am
- not an experienced Macintosh programmer -- in fact, The Swarm is my
- very first programming effort for the Mac. This means that the code
- may have hidden problems that I’m simply not aware of. Don’t assume
- that I’m always doing things the ‘right’ way!
-
- I would appreciate hearing about any other bugs or problems you may encounter
- with The Swarm, but please try make sure that you are running the latest
- versions of After Dark or DarkSide of the Mac. At the moment of writing the
- current version numbers are 2.0x for After Dark (2.0y if you have the Disney
- Collection) and 4.1 for DarkSide. Free updaters for these programs are readily
- available on the Internet and on all the major commercial software archives.
-
-
- A Word about Memory and CPU-time
- --------------------------------
-
- The Swarm tries to be a well-behaved, system-friendly module. It will, for
- instance, *not* reserve any permanent memory in your system heap. That
- means that having The Swarm selected costs you no more memory than having
- the default ‘Starry Night’ module selected, *as long as After Dark has not
- taken over the screen*.
-
- Of course, once After Dark kicks in, The Swarm *does* need loads of memory
- for its animation (the larger your screen the worse it gets :-)), which it
- will try to allocate out of the free memory you have at that moment. In
- low-memory situations (e.g. if you have lots of applications open), this
- attempt may be unsuccessful, and the module will refuse to run with an
- appropriate error message. The reason I am explaining all of this in such
- detail is that the upshot of this strategy is that you may see The Swarm
- ‘fail’ to run more often than other modules. But that is entirely
- intentional, and only means that it is your real applications which are
- getting access to every last Kb of your available memory. Isn’t that how
- things should be?
-
- On fast Macs (Quadra’s or higher), finally, you will want to use the ‘Swarm
- Speed’ slider in the control panel to slow the animation down. Here too, I
- just want to point out that if you do this, then the extra CPU time will be
- given back to the system. The Swarm will never use more processing power
- then it really needs.
-
-
- Still To Do
- -----------
-
- There will be a next version of The Swarm, although for the coming months
- (I’m writing this in March 1994) I will not have time to work on it.
- For The Swarm v2.0 I intend the following features and fixes:
-
- • Support multiple monitors.
- • Support old, non-Color Quickdraw B&W Macs.
- • Fix the Known Problems.
- • Make Bees change color over time.
- • Make Queen Bee behave more intelligently and interestingly.
- • Multiple Swarms, or multiple Queen Bees (there’s a difference!).
- • Add sound/music.
- • Add more parameters for you to play with.
- • Make a specific “DarkSide of the Mac” version.
- • Add an option to make the entire Swarm move 3-dimensionally, with
- depth indicated by perspective projection and color brightness.
-
- If you have any suggestions to add to this list, let me know.
-
-
- A request
- ---------
-
- As mentioned before, this module and its source code are released as
- freeware. Do with them whatever you like, and feel free to use as much of
- my code as you like in your own programs. Just one small request: please
- do not hack the source code, recompile it, and then release your own version
- of The Swarm. Instead, if you have made modifications, let me know about it,
- and I’ll see if I can incorporate it into the next version.
-
- Whether you are a programmer or not: feel free to send any kind of feedback
- my way. Bug reports, wish lists, comments, questions -- everything is more
- than welcome.
-
-
- Miscellaneous Stuff
- -------------------
-
- Internet-connected people can find the original xswarm program on the
- X Windows ftp site: ftp.x.org:/contrib.
-
- The most recent version of the After Dark programmer’s interface (which also
- gets updated sometimes -- the copy that came with your diskette may be outdated)
- is available from the major Internet archive sites such as sumex.stanford.edu,
- mac.archive.umich.edu and their mirrors. So are the DarkSide of the Mac and
- Twilight Zone packages, as well as the After Dark 2.0x updater.
-
- If you want to write After Dark modules yourself, consider joining the
- After Dark programmer’s mailing list. In order to subscribe, send mail
- to afterdark-request@clipper.att.com.
-
- Associated with the mailing list is the After Dark ftp site, where you will
- find lots of After Dark-related material, including many modules as well as
- special programmer’s information. For those of you connected to the Internet:
- a convenient way to access the After Dark ftp site is by using the bookmark
- file included in this distribution of The Swarm. This bookmark can be opened
- (just double-click it) by Fetch (v2.1.2 or later) or Anarchie (v1.0.3 or later),
- two ftp-aware applications that no Mac on the Internet should be without. You
- will then directly be transported to what in more conventional terms would be
- described as ftp.att.com:/pub/afterdark.
-
- Finally, nobody who owns a Macintosh screensaver package should be without
- the most recent version of Lloyd Wood’s Screensaver FAQ (Frequently Asked
- Questions List). Copies of this list are also available from all major
- archive sites on or off the Internet. It is a must-have. Trust me.
-
-
- Enjoy,
-
- --
- Leo Breebaart (leo@cp.tn.tudelft.nl)
-